package org.jl.spring.aop.service;

import org.jl.spring.aop.annotation.SysCache;
import org.jl.spring.aop.annotation.SysLog;
import org.jl.spring.aop.entity.Property;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AopService {

    @SysLog(from = "A", to = "B")
    public String hello(String name) {
        return name;
    }

    @SysLog()
    public String prop(Property prop) {
        return "ok";
    }

    @SysLog()
    public void prop2() {
    }

    @SysCache(expireTime = 5)
    public List<String> cache(List<String> ids) {
        return ids;
    }
}
